<?php
include("Valite.php");

$valite = new Valite();
$data = array(
			///"addition.jpg"=>array('a','d','d','i','t','i','o','n'),
		//	"against.jpg"=>array('a','j','a','i','n','s','t'),
		//	"blade.jpg"=>array('b','l','a','d','e'),
			//"chemical.jpg"=>array('c','h','e','m','i','c','a','l'),
	//		"church.jpg"=>array('a','d','d','i','t','i','o','n'),
	//		"daughter.jpg"=>array('a','d','d','i','t','i','o','n'),
		//	"library.jpg"=>array('l','i','b','r','a','r','y'),
// 			"spade.jpg"=>array('s','p','a','d','e'),
// 			"addition.jpg"=>array('a','d','d','i','t','i','o','n'),
// 			"addition.jpg"=>array('a','d','d','i','t','i','o','n'),
// 		    "addition.jpg"=>array('a','d','d','i','t','i','o','n'),
// 			"addition.jpg"=>array('a','d','d','i','t','i','o','n'),
//  			"addition.jpg"=>array('a','d','d','i','t','i','o','n'),
		);

foreach($data as $key => $value)
{

	//$valite->bmp2jpeg($key);
	$valite->setImage('img/'.$key);
	$valite->getHec();
	$valite->filterInfo();
	$valite->study($value);
}


//$valite->bmp2jpeg("queaa.bmp");
$valite->setImage("img/addition.jpg");
$valite->getHec();
$valite->filterInfo();
echo $valite->run();


/*
$data = $valite->getData();

foreach($data as $key=>$value)
{
	echo "=============$data===============\n";
	foreach($value as $lkey => $lvalue)
	{
		$str = implode("",$lvalue);
		echo $str."\n";
	}
	echo "===============================\n";
}
*/
?>